#include "List.h"

class Category
{
private:
   StrList Questions;
public:
   char strName[80];

   Category(char* Name);
   void add(char* question);
   void clear(void) { Questions.clear(); }
   int find(char* answer);
   int getCount() { return Questions.getCount(); }
   char* item(int Index) { return Questions.item(Index); }
   void load(void);
};

class CategoriesControlCenter
{
private:
   List Categories;
public:
   void add(char* Name);
   void clear(void) { Categories.clear(); }
   Category* item(int Index) { return (Category*)Categories.item(Index); }
   int getCount() { return Categories.getCount(); }
   Category* getRandom(void);
   void load(void);
   void print(bool isNumbered);
};